#include <linux/fs2.h>
#include <linux/mm.h>

const struct address_space_operations ramfs_aops = {
	.readpage	= simple_readpage,
	.write_begin	= simple_write_begin,
	.write_end	= simple_write_end,
	// .set_page_dirty = __set_page_dirty_no_writeback,
};

const struct file_operations ramfs_file_operations = {
	.read		= do_sync_read,
	.aio_read	= generic_file_aio_read,
	.write		= do_sync_write,
	.aio_write	= generic_file_aio_write,
	// .mmap		= generic_file_mmap,
	// .fsync		= simple_sync_file,
	// .splice_read	= generic_file_splice_read,
	// .splice_write	= generic_file_splice_write,
	// .llseek		= generic_file_llseek,
};

const struct inode_operations ramfs_file_inode_operations = {
	// .getattr	= simple_getattr,
};
